package com.nanrui.mutualinductor.ui.adapter;

import android.support.annotation.Nullable;

import com.batman.baselibrary.db.RtBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.nanrui.mutualinductor.R;

import java.util.List;

public class HishoryAdapter extends BaseQuickAdapter<RtBean, BaseViewHolder> {


    public HishoryAdapter(@Nullable List<RtBean> data) {
        super(R.layout.item_history, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RtBean item) {
        helper.setText(R.id.tv_name, "测试人员" + item.person);
        helper.setText(R.id.tv_id, "资产编号" + item.num);
        helper.setText(R.id.tv_place, "测试位置" + item.place);
        helper.setText(R.id.tv_date, "时间" + item.date);
    }
}
